import service from "@/api/request";
import type { AxiosPageResponse } from '@/model/model3000'

export const usePlantListApi = (data: any) => {
  return service.post<any,AxiosPageResponse,any>("/works/page", data);
};

export const usePlantDetailApi = (data: any) => {
  return service.get("/works/detail/" + data)
};

export const useSavePlantApi = (data: any) => {
  return service.post("/works/add",data)
};

export const useUpdatePlantApi = (data: any) => {
  return service.put("/works/update",data)
};

export const useRemovePlantApi = (data: any) => {
  return service.post("/works/remove",data)
};